package com.remenote.remenoteback.dao;

import com.remenote.remenoteback.entity.doo.NotebookDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NotebookRepository  extends JpaRepository<NotebookDo,Integer> {
    List<NotebookDo> findNotebookDoByUsernameAndIsDelete(String username, boolean isDelete);
    List<NotebookDo> findNotebookDoByUsernameAndNotebookIdAndIsDelete(String username,Integer notebookName,boolean isDelete);
}
